﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace StarTrekFileBrowser
{
    /// <summary>
    /// Interaction logic for BrowserFileControl.xaml
    /// </summary>
    public partial class BrowserFileControl : UserControl
    {

        //for storing the id of the node
        public int ID { get; set; }

        public BrowserFileControl()
        {
            InitializeComponent();

        }


        public Brush FrontLineColor
        {
            get { return (Brush)GetValue(FrontLineColorProperty); }
            set { SetValue(FrontLineColorProperty, value); }
        }
        public static readonly DependencyProperty FrontLineColorProperty =
            DependencyProperty.Register("FrontLineColor", typeof(Brush), typeof(BrowserFileControl), new UIPropertyMetadata(Brushes.Black));


        public Brush StrokeColor
        {
            get { return (Brush)GetValue(StrokeColorProperty); }
            set { SetValue(StrokeColorProperty, value); }
        }
        public static readonly DependencyProperty StrokeColorProperty =
            DependencyProperty.Register("StrokeColor", typeof(Brush), typeof(BrowserFileControl), new UIPropertyMetadata(new SolidColorBrush(Colors.Transparent)));


        public Brush FillColor
        {
            get { return (Brush)GetValue(FillColorProperty); }
            set { SetValue(FillColorProperty, value); }
        }
        public static readonly DependencyProperty FillColorProperty =
            DependencyProperty.Register("FillColor", typeof(Brush), typeof(BrowserFileControl), new UIPropertyMetadata(new SolidColorBrush(Colors.Violet)));


        public string LabelText
        {
            get { return (string)GetValue(LabelTextProperty); }
            set { SetValue(LabelTextProperty, value); }
        }
        public static readonly DependencyProperty LabelTextProperty =
            DependencyProperty.Register("LabelText", typeof(string), typeof(BrowserFileControl), new UIPropertyMetadata(""));


        public int NodeID
        {
            get { return (int)GetValue(NodeIDProperty); }
            set { SetValue(NodeIDProperty, value); }
        }
        public static readonly DependencyProperty NodeIDProperty =
            DependencyProperty.Register("NodeID", typeof(int), typeof(BrowserFileControl), new UIPropertyMetadata(0));



        public int Layer
        {
            get { return (int)GetValue(LayerProperty); }
            set { SetValue(LayerProperty, value); }
        }
        public static readonly DependencyProperty LayerProperty =
            DependencyProperty.Register("Layer", typeof(int), typeof(BrowserFileControl), new UIPropertyMetadata(0));

        


    }
}
